package com.demo.base.exception;

import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper=false)
public class ParamException extends RuntimeException {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private int code=500;
	private String message;
	public ParamException(int code, String message) {
		super();
		this.code = code;
		this.message = message;
	}
	public ParamException(String message) {
		super();
		this.message = message;
	}
	
}
